<?php

/**
 * This is the model metadata class for table "financial_account".
 */
class FinancialAccountMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'financial_account';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('fatid', 'numerical', 'integerOnly'=>true),
			array('worker_id', 'length', 'max'=>20),
			array('access, aname', 'length', 'max'=>100),
			array('auser, account', 'length', 'max'=>50),
			array('balance', 'length', 'max'=>10),
			array('remark', 'length', 'max'=>255),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('id, fatid, worker_id, access, auser, aname, account, balance, remark', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id' => 'ID',
			'fatid' => '账户类型',
			'worker_id' => '用户',
			'access' => '权限',
			'auser' => '户名',
			'aname' => '账号',
			'account' => '开户银行',
			'balance' => '余额',
			'remark' => '备注',
		);
	}
}